<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
<script>
 function subForm(id){
      document.getElementById("pageno").value=id;
      submit();
 }
</script>
</head>
<body>
<div>
<fieldset><legend>jilu</legend>
<form action="findRecord.action">
<input type="hidden" name="recordFilter.filterName" value="${recordFilter.filterName }"/>
<input type="hidden" name="recordFilter.valuekey" value="${recordFilter.valuekey }" />
<input type="hidden" name="recordFilter.orderFieldName" value="${recordFilter.orderFieldName }" />
<input type="hidden" name="recordFilter.begin_time" value="${recordFilter.begin_time }" />
<input type="hidden" name="recordFilter.end_time" value="${recordFilter.end_time }" />
<input type="hidden" name="pagination.no" id="pageno"/>
</form>
<div>
<h1 id="page_title">jiaoyijilu列表</h1>
<div>
<table>
	<tr>
		<td>ID</td>
		<td>帐户第</td>
		<td>交易金额</td>
		<td>操作</td>
		<td>余额</td>
		<td>时间</td>
	</tr>
	<c:forEach var="record" items="${pagination.results}">
		<tr>
			<td>${record.id }</td>
			<td>${record.account.id }</td>
			<td>${record.amount }</td>
			<td>${record.description }</td>
			<td>${record.balance }</td>
			<td>${record.exchange_time }</td>
		</tr>
	</c:forEach>
</table>
<div class="pagination">
<ul>
	<li>${pagination.size }条/页</li>
	<li>${pagination.pageSum }页</li>
	<li>${pagination.recordSum }条</li>
	<c:if test="${!pagination.first}">
		<li><a
			href="javascript:subForm('1')">首页</a>
		</li>
	</c:if>
	<c:if test="${pagination.previous}">
		<li><a
			href="javascript:subForm(${pagination.no-1 })">上页</a>
		</li>
	</c:if>
	<c:if test="${pagination.next}">
		<li><a
			href="javascript:subForm(${pagination.no+1 })">下页</a>
		</li>
	</c:if>
	<c:if test="${!pagination.last&&pagination.no>0}">
		<li><a
			href="javascript:subForm(${pagination.pageSum })">末页</a>
		</li>
	</c:if>
</ul>
</div>
</div>
</div>
</fieldset>
</div>
</body>
</html>